<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<script>
			var i=0;
			var j=0;
			var k=0;
			for ( i = 0; i <=20; i++) {
				for ( j=0;j<=33;j++) {
					k=100-i-j;
					if(k%3==0){
						if(5*i+3*j+k/3==100){
							document.write("公鸡有"+i+"只");
							document.write("母鸡有"+j+"只");
							document.write("小鸡有"+k+"只");
							document.write("<br />")
						}	
					}
				}
			}
		</script>
	</body>
</html>
